package banking8.domain;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-11-08
 * Time:22:55
 */
public class OverdraftException extends Exception{
    private double deficit;

    public double getDeficit() {
        return deficit;
    }


    public OverdraftException(String message, double deficit) {
        System.out.println(message+deficit);
        this.deficit = deficit;
    }
}
